<%@ Page Language="C#" AutoEventWireup="true" CodeFile="EmailTemplateList.aspx.cs"
    Inherits="Admin_Email_EmailTemplateList" %>

<%@ Register Src="../../Control/PageNo.ascx" TagName="PageNo" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>邮件模板管理</title>
<link rel="stylesheet" href="../skin/style.css" type="text/css" />
<script type="text/javascript" src="../../js/jquery.js"></script>
</head>
<body>
    <form id="form1" runat="server">
	<div class="itemtitle">
            <h3>
                操作提示</h3>
        </div>
        <div class="itemtitle_tect">
            <ul>
                <li>通过邮件模版管理，可以管理已添加的邮件模板。</li>
            </ul>
        </div>
        <div class="clr">
        </div>
        <div class="talbe_border">
		<asp:DataList ID="dlstEmailTemplate" runat="server" DataKeyField="ID" width="100%" OnDeleteCommand="dlstEmailTemplate_DeleteCommand">
			<HeaderTemplate>
				<table cellpadding="0" cellspacing="0" border="0" width="100%" class="talbe_th header">
					<tr>
						<th class="th20 tou"></th>
						<th class="left2">邮件标题</th>
						<th class="th180">标志</th>
						<th class="th80">分类</th>
						<th class="th180">简短说明</th>
						<th class="th180">操作选项</th>
					</tr>
				</table>
			</HeaderTemplate>
			<ItemTemplate>
				<table cellpadding="0" cellspacing="0" border="0" width="100%" class="talbe_td">
					<tr onmouseover="this.style.backgroundColor='#F0F7FD'" onmouseout="this.style.backgroundColor=''">
						<td style=" width:24px;">
							<asp:CheckBox ID="CheckBox1" runat="server" />
						</td>
						<td class="left4">
							<a href='EmailTemplateEdit.aspx?ID=<%# Eval("ID") %>'>
								<%# Eval("Title") %>
							</a>
						</td>
						<td style=" width:159px;">
							<a href='EmailTemplateEdit.aspx?ID=<%# Eval("ID") %>'>
								<%# Eval("Flag") %>
							</a>
						</td>
						<td style=" width:119px;">
							<a href='EmailTemplateEdit.aspx?ID=<%# Eval("ID") %>'>
								<%# Eval("Type") %>
							</a>
						</td>
						<td style=" width:159px;">
							<a href='EmailTemplateEdit.aspx?ID=<%# Eval("ID") %>'>
								<%# Eval("Name") %>
							</a>
						</td>
						<td style=" width:159px;">
							<asp:LinkButton ID="lnkbtnDelete" CommandName="delete" runat="server" OnClientClick="return confirm('您确认要删除吗？')">删除</asp:LinkButton>
						</td>
					</tr>
				</table>
			</ItemTemplate>
		</asp:DataList>
		<div class="Paging">
         <p>
		 <asp:Label ID="lblMessage" runat="server" ForeColor="Red" Text="Label" Visible="false"></asp:Label>
		<uc1:PageNo ID="PageNo1" runat="server" />
		 </p>
		<input id="CheckBox2" name="CheckBox2" onclick="SelectAll();" type="checkbox" />全选
		<asp:Button ID="btnDelete" runat="server" Font-Size="9pt" OnClick="btnDelete_Click" Text="批量删除" CssClass="i_button" />
        </div>
		</div>
    </form>
</body>
</html>
